type IFormType =
  | 'input'
  | 'password'
  | 'number'
  | 'select'
  | 'datepicker'
  | 'textarea'
  | 'select-input'
  | 'select-input-button'
  | 'input-input-button'
  | 'input-input'

export interface IFormItem {
  field?: string
  type?: IFormType
  label: string
  rules?: any[]
  placeholder?: any
  // 针对select
  options?: any[]
  // 针对特殊的属性
  otherOptions?: any
  isHidden?: boolean
  fields?: any[]
}

export interface IForm {
  formItems: IFormItem[]
  labelWidth?: string
  labelPosition?: string
  colLayout: any
  itemStyle: any
}
